#ifndef CONNECTIONMANAGER_H
#define CONNECTIONMANAGER_H

class NNTPWireClient;

#include <QByteArray>
#include <QSet>

class ConnectionManager
{
public:
    ConnectionManager();

    bool canAddConnection() const;
    void addConnection(NNTPWireClient *connection);
    void removeConnection(NNTPWireClient *connection);
    int maxConnections() const;
    void setMaxConnections(int connections);

 private:
    QSet<NNTPWireClient *> connections;
    int maximumConnections;
};

#endif // CONNECTIONMANAGER_H
